<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
		<title>微幼云微信端</title>
		<link rel="stylesheet" href="./static/css/reset.css">
		<link rel="stylesheet" href="./static/css/style.css">
    <style type="text/css">
			html,
			body {
				width: 100%;
				height: 100%;
			}

		</style>
	</head>
	<body>
		<div id="app"></div>
		<!-- built files will be auto injected -->
	</body>
	<script>
		var fontSize = function(doc, win) {
			var docEl = doc.documentElement,
				resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
				recalc = function() {
					var clientWidth = docEl.clientWidth;
					if (!clientWidth) return;

					//这里是假设在375px宽度设计稿的情况下，1rem = 10px；
					//可以根据实际需要修改
					docEl.style.fontSize = 10 * (clientWidth / 375) + 'px';
				};
			if (!doc.addEventListener) return;
			win.addEventListener(resizeEvt, recalc, false);
			doc.addEventListener('DOMContentLoaded', recalc, false);
		}
		fontSize(document, window);
	</script>
</html>
